package com.acxiom.bsh.constants;

import com.acxiom.bsh.pojo.GlobalContext;

public class ThreadLocalContextHolder {

	private static ThreadLocal<GlobalContext> THREADLOCAL_CONTEXT=new ThreadLocal<GlobalContext>();
	
	
	public static void put(GlobalContext context) {
		THREADLOCAL_CONTEXT.set(context);
	}
	
	public static GlobalContext get() {
		return THREADLOCAL_CONTEXT.get();
	}
	public static void cleanupThread() {
		THREADLOCAL_CONTEXT.remove();
	}
}
